﻿function disposal()
{
  showProgressBar(false,true);
$("$divIput$").style.display = "none";
    var title="";
    var body="";
           
         title="处理意见";
         body="<div><div class=\"margin5\">处理意见</div><div class=\"margin5\"><textarea id=\"texta_body\" class=\"common460\" rows=\"3\"></textarea></div></div><div class='Popup_button'><input type='button' value='学生申请有效,退款给学生 ' id='addCancelButton' class='buttong' onclick='save(\"D\")'/><input type='button' value='学生申请无效,转款给老师 ' id='addCancelButton' class='buttong' onclick='save(\"E\")'/><input type='button' value='关闭窗口 ' id='addCancelButton' class='buttong' onclick='$EndMessageBox$()'/></div>";
    var obj = {}
    $ShowMessageBox$(title,body,obj,$EndMessageBox$,600);  
}
function addurl(sid)
{
 showProgressBar(false,true);
$("$divIput$").style.display = "none";
    var title="";
    var body="";
           
         title="增加记录";
         body="<div><div class=\"margin5\">教学记录 (请输入URL)</div><div class=\"margin5\"><input  type=\"text\"  id=\"txt_body\"/></div></div><div class='Popup_button'><input type='button' value='保存 ' id='svButton' class='buttong' onclick='AddTeachURL("+sid+")'/><input type='button' value='关闭窗口 ' id='addCancelButton' class='buttong' onclick='$EndMessageBox$()'/></div>";
    var obj = {}
    $ShowMessageBox$(title,body,obj,$EndMessageBox$,600);  

}
function AddTeachURL(sid)
{
var teachurl=$("txt_body").value;
  WebServices.User.Teach.AddTeachURL(teachurl,sid,onnersurl);  
}
function onnersurl(re)
{
    alert(re);
    if(re){$EndMessageBox$();}
}
function save(state)
{
    
}
function GetDispute(sid)
{
 WebServices.User.Teach.GetDispute(sid,onners);   
}
function onners(reft)
{
showProgressBar(false,true);
$("$divIput$").style.display = "none";
    var title="";
    var body="";
           
         title="投诉记录";
         body="<div><div class=\"margin5\">学生的投诉</div><br/><span>"+reft[0]+"</span><div class=\"margin5\">老师的解释</div><br/><span>"+reft[1]+"</span></div><div class='Popup_button'><input type='button' value=' close this window ' id='addCancelButton' class='buttong' onclick='$EndMessageBox$()'/></div>";
    var obj = {}
    $ShowMessageBox$(title,body,obj,$EndMessageBox$,600);

}
